package com.kjtpay.design_pattern.proxy;

class Proxy implements IGiveGift {
    Pursuit pursuit;

    public Proxy(SchoolGirl mm) {
        pursuit = new Pursuit(mm);
    }

    @Override
    public void GiveDolls() {
        pursuit.GiveDolls();
    }

    @Override
    public void GiveFlowers() {
        pursuit.GiveFlowers();
    }

    @Override
    public void GiveChocolate() {
        pursuit.GiveChocolate();
    }

    public String GetResult() {
        return pursuit.whatToDo;
    }
}
